package Exercicios2;

public class E extends D implements C{

	public void aMethod() { System.out.println("class E - aMethod"); }
	public void bMethod() { System.out.println("class E - bMethod"); }
	public void cMethod() { System.out.println("class E - cMethod"); }

	public static void main(String[] args) {

		D e = new E();
		e.bMethod(); // imprime class E - bMethod

		D ee = (D)(new E());
		ee.bMethod(); // imprime class E - bMethod

		D eee = (D)(new E());
		eee.bMethod(); // imprime class E - bMethod

	}
}
